package main

import "fmt"
import "math/cmplx"

func main() {
	var x complex64 = complex(3, 4)
	var y complex64 = complex(6, 8)
	var z complex128 = complex(1, 2)
	fmt.Println(x)
	fmt.Printf("%v\n", y)
	fmt.Println(z)
	fmt.Println(x + y)
	fmt.Println(x * y)
	fmt.Println(x / y)

	fmt.Println()

	a := 1 + 2i
	b := 2 + 3i
	c := cmplx.Sqrt(-4.41)
	fmt.Println(a * b)
	fmt.Println(c)
	fmt.Println(real(a))
	fmt.Println(imag(a))

}
